package com.party.core.dao.write.copartner;

import com.party.core.dao.write.BaseWriteDao;
import com.party.core.model.copartner.TargetCopartner;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Author: Administrator.
 * @Description: 目标与合伙人关联表
 * @Date:Created in 2017/10/23 0023 下午 15:39.
 */
@Repository
public interface TargetCopartnerWriteDao extends BaseWriteDao<TargetCopartner> {
    Integer ensureJoin(@Param("targetId") String targetId, @Param("partnerId") String partnerId);

    void deleteByTargetId(@Param(value = "targetId") String targetId);
}
